package com.luojie.mapper;


import com.luojie.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select *from luojie_take_out.user where openid=#{openid}")
    User getByOpenid(String openid);
    @Select("select *from luojie_take_out.user where id=#{id}")
    void insert(User user);

    @Select("select *from sky_take_out.user where id=#{id}")
    User getById(Long userId);

}
